t = int(raw_input().strip())
for i in xrange(t):
    d = [int(j) for j in raw_input().strip().split()]
    print sum(d)